import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Hello from '@/components/Hello'
import UserCenter from '@/components/UserCenter'
import Comment from '@/components/Comment'
import Swipe from '@/components/Swipe'
import Demo from '@/components/Demo'
import Slider from '@/components/Slider'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'Hello1' ,
      component: Hello
    },
    {
      path: '/user-center',
      name: 'UserCenter',
      component: UserCenter
    },
    {
      path: '/comment/:video_id',
      name: 'Comment',
      component: Comment
    },
    {
      path: '/swipe',
      name: 'Swipe',
      component: Swipe
    },
      {
          path: '/slider',
          name: 'Slider',
          component: Slider
      },
    {
      path: '/demo/:video_id',
      name: 'Demo',
      component: Demo
    }
  ]
})
